package com.spring.learn.service;

import com.spring.learn.domain.TbUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "provider-service", fallback = UserClientFallback.class, configuration = FeignClientConfig.class)
public interface UserClient {

    @GetMapping("/provider/user/{id}")
    TbUser queryById(@PathVariable("id") Long id);
}
